package main

import (
	"fmt"
	"log"
	"net/rpc"
	"handler"
)

func main() {
	client, err := rpc.Dial("tcp", "localhost:1234")
	if err != nil {
		log.Fatal("拨号错误:", err)
	}

	args := &handler.Args{7, 8}
	var reply int
	err = client.Call("Arith.Multiply", args, &reply)
	if err != nil {
		log.Fatal("计算错误:", err)
	}
	fmt.Printf("result: %d %d %d", args.A, args.B, reply)
}
